<?php
/* $Id: helloworld.php 30 2007-12-20 10:17:16Z eveoneway $ */

/****************************************************************/
// Part inside the /***/ don't need to be touched for this demo
// Eve Class (OneWayWeb Edition)
include_once 'includes/eveclass.php';
// Initiating Eve Class
$eve = new Eve();

echo("<pre>");
print_r($eve);


var_dump(isset($_SERVER['HTTP_EVE_TRUSTED']));


exit;

// Although we don't necessarily need to use a constant or a variable, it can serve later (templates)
define('IS_IGB', (($eve->IsMiniBrowser() == true) ? true : false));
// Are we in... or out-game
if (!IS_IGB) {
    echo 'You are browsing this page out-game';
    exit;
}
if ($eve->ServerGetVar('HTTP_EVE_TRUSTED') == "no") {
    //$trust = false;
    header("eve.trustme:".$eve->GetBaseURL()."::You need to trust this page!.");
} else {
    $trust = true;
}
/****************************************************************/


// Get information about the visitor
$uservars = $eve->GetUserVars();

// Let's show a bit of info about our visitor
Head();

echo 'You are: '              . $uservars['username']     . '<br />';         // or $eve->UserName
echo 'From: '                 . $uservars['usercorp']     . '<br />';         // or $eve->UserCorp
echo 'That is in'             . $uservars['useralliance'] . '.<br />';        // or $eve->UserAlliance
echo '<br /><br />';

if ($uservars['userstation'] == 'None') { // or $eve->UserStation
    echo 'You are somewhere in space<br />';
} else {
    echo 'You are docked in the ' . $uservars['userstation']  . ' station<br />'; // or $eve->UserStation
}

echo 'in the '                . $uservars['usersystem']   . ' system<br />';  // or $eve->UserSystem
echo 'that is in the '        . $uservars['userregion']   . ' region.<br />'; // or $eve->UserRegion
echo '<br /><br />';

Foot();





function Head()
{
    ob_start();
    echo '<html>';
    echo '<head>';
    echo '  <title>Your Title page</title>';
    echo '</head>';
    echo '<body style="color:white;"><br /><br /><center>Your Title page</center><br />';
}

function Foot()
{
    echo '<br /><br /><center>Your Footer</center></body></html>';
    ob_end_flush();
}

?>